import request from '@/utils/request'

export function getbumenlist() {
  return request({
    url: '/company/department'

  })
}

// 新增部门接口
export function addlist(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 根据id获取部门详情
export function editlist(id) {
  return request({
    url: `/company/department/${id}`

  })
}
// 根据id修改页面详情
export function editreallist(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}
// 根据id删除部门

export function delllist(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'

  })
}

